package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StandardSynTotalMapper;
import com.ruoyi.system.domain.StandardSynTotal;
import com.ruoyi.system.service.IStandardSynTotalService;

/**
 * StandardTotalService业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
@Service
public class StandardSynTotalServiceImpl implements IStandardSynTotalService 
{
    @Autowired
    private StandardSynTotalMapper standardSynTotalMapper;

    /**
     * 查询StandardTotal
     * 
     * @param id StandardTotal主键
     * @return StandardTotal
     */
    @Override
    public StandardSynTotal selectStandardSynTotalById(Long id)
    {
        return standardSynTotalMapper.selectStandardSynTotalById(id);
    }

    /**
     * 查询StandardTotal列表
     * 
     * @param standardSynTotal StandardTotal
     * @return StandardTotal
     */
    @Override
    public List<StandardSynTotal> selectStandardSynTotalList(StandardSynTotal standardSynTotal)
    {
        return standardSynTotalMapper.selectStandardSynTotalList(standardSynTotal);
    }

    /**
     * 新增StandardTotal
     * 
     * @param standardSynTotal StandardTotal
     * @return 结果
     */
    @Override
    public int insertStandardSynTotal(StandardSynTotal standardSynTotal)
    {
        standardSynTotal.setCreateTime(DateUtils.getNowDate());
        return standardSynTotalMapper.insertStandardSynTotal(standardSynTotal);
    }

    /**
     * 修改StandardTotal
     * 
     * @param standardSynTotal StandardTotal
     * @return 结果
     */
    @Override
    public int updateStandardSynTotal(StandardSynTotal standardSynTotal)
    {
        return standardSynTotalMapper.updateStandardSynTotal(standardSynTotal);
    }

    /**
     * 批量删除StandardTotal
     * 
     * @param ids 需要删除的StandardTotal主键
     * @return 结果
     */
    @Override
    public int deleteStandardSynTotalByIds(Long[] ids)
    {
        return standardSynTotalMapper.deleteStandardSynTotalByIds(ids);
    }

    /**
     * 删除StandardTotal信息
     * 
     * @param id StandardTotal主键
     * @return 结果
     */
    @Override
    public int deleteStandardSynTotalById(Long id)
    {
        return standardSynTotalMapper.deleteStandardSynTotalById(id);
    }
}
